<?php
class App_controller_index extends Core_controller_abstract
{
	public function index()
	{
		$cate = new App_model_category();
		//$cate->add(array('cateName'=>'iphone4', 'pid'=>'2', 'createDate'=>time()));
		$cates = $cate->getAll();
		
		$this->view->assign('title', 'My site index');
		$this->view->assign('cates', $cates);
	}
}